// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Antd, { message } from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import axios from 'axios'
import './assets/global.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import qs from 'qs'
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
import {MessageBox} from 'element-ui'
import VueAxios from 'vue-axios'

Vue.use(VueAxios)
Vue.use(mavonEditor)
Vue.use(ElementUI);
Vue.use(Antd)
Vue.use(router)
Vue.config.productionTip = false
Vue.config.productionTip = false
Vue.prototype.$http = axios
Vue.prototype.$confirm = MessageBox.confirm
axios.defaults.baseURL = 'http://127.0.0.1:8081/api/'
Vue.prototype.$message = message
Vue.prototype.HOST = '/api'
Vue.prototype.$qs = qs
message.config({
  duration: 2,// 持续时间
  top:`100px`, // 到页面顶部距离
  maxCount: 3 // 最大显示数, 超过限制时，最早的消息会被自动关闭
});
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
